//
//  DialogBaseView.m
//  StockNet
//
//  Created by 小焘无量 on 2023/1/11.
//

#import "DialogBaseView.h"

@implementation DialogBaseView

-(instancetype)init {
    if (self = [super init]) {
        [self animationConfig];
    }
    return self;
}

-(void)animationConfig {
    self.alpha = 0;
    [UIView animateWithDuration:0.2 animations:^{
        self.alpha = 1;
    }];
}

-(void)hidSelfWithAnimation {
    
    WeakSelf
    [UIView animateWithDuration:0.2 animations:^{
        weakSelf.alpha = 0;
    } completion:^(BOOL finished) {
        [weakSelf removeFromSuperview];
    }];
    
}

@end
